const app = {
    state: {
        sidebar: false//菜单开合状态
    },
    mutations: {
        TOGGLE_SIDEBAR: (state) => {
            state.sidebar = !state.sidebar
        }
    }
}

// 输出
export default app;